#include<stdio.h>
#include<stdlib.h>

#define N 10

int main()
{
    int num[N+1],len=N,flag=0;
    int *np=num,*tp=num;
    for(int i=0;i<len;i++){
        scanf("%d",np+i);
    }
    *(np+len)=NULL;
    while(*np){
        tp=np+1;
        while(*tp){
            if((*np)==(*tp)){
                *tp=-1;
            }
            tp++;
        }
        np++;
    }
    np=num;
    while(*np){
        if(*np!=-1){
            if(flag==0){
                printf("%d",*np);
                flag=1;
            }
            else  printf(" %d",*np);
        }
        np++;
    }
}
